/**
 * 流程状态
 *   ONGOING("运行中"),
    COMPLETED("已完成"),
    EXCEPTION("异常"),
    TERMINATED("终止");
 */
export const PROCESS_STATUS = [
  {
    label: "运行中",
    value: "ONGOING"
  },
  {
    label: "已完成",
    value: "COMPLETED"
  },
  {
    label: "异常",
    value: "EXCEPTION"
  },
  {
    label: "终止",
    value: "TERMINATED"
  }
];
/**
 * 基本信息
 */
export const BASEINFO_PONINTS_COLUMNS = [
  [
    {
      label: "标题",
      value: "title"
    }
  ],
  [
    {
      label: "Site",
      value: "site"
    },
    {
      label: "Fab",
      value: "fab"
    },
    {
      label: "EQ ID",
      value: "eqId"
    }
  ],
  [
    {
      label: "流程编号",
      value: "serialId"
    },
    {
      label: "Equipment Location",
      value: "eqpLocation"
    },
    {
      label: "Organization",
      value: "organization"
    }
  ],
  [
    {
      label: "Model",
      value: "model"
    },
    {
      label: "Function",
      value: "function"
    },
    {
      label: "Vendor",
      value: "vendor"
    }
  ],
  [
    {
      label: "MOC No.",
      value: "mocNo"
    },
    {
      label: "Notice",
      value: "notice",
      col: 2
    }
  ]
];
/**
 * 表格配置
 */
export const TABLE_CONFIG = [
  {
    title: "Components",
    key: "Component & Foundation",
    columns: [
      {
        label: "Component",
        value: "f1",
        minWidth: "160px",
        fixed: true
      },
      {
        label: "Quantity",
        minWidth: "120px",
        value: "f2"
      },
      {
        label: "Floor#",
        value: "f4"
      },
      {
        label: "Bay Location",
        value: "f15"
      },
      {
        label: "Dimensions",
        minWidth: "120px",
        children: [
          {
            label: "Width",
            value: "f5"
          },
          {
            label: "Depth",
            value: "f6"
          },
          {
            label: "Height",
            value: "f7"
          },
          {
            label: "Unit",
            value: "f16"
          }
        ]
      },
      {
        label: "Weight",
        value: "f8"
      },
      {
        label: "Maintenance Clearance",
        minWidth: "160px",
        children: [
          {
            label: "Left",
            value: "f9"
          },
          {
            label: "Right",
            value: "f10"
          },
          {
            label: "Front",
            value: "f11"
          },
          {
            label: "Rear",
            value: "f12"
          },
          {
            label: "Top",
            value: "f13"
          }
        ]
      },
      // {
      //   label: "Unit Code",
      //   value: "f3"
      // },
      {
        label: "Remarks",
        value: "f14"
      }
    ]
  },
  {
    title: "Special Requirement",
    key: "Special Requirement",
    columns: [
      {
        label: "Table required",
        value: "f1"
      },
      {
        label: "Table dimensions WxDxHx(MM)",
        value: "f2",
        minWidth: "160px"
      },
      {
        label: "Bulkhead installation",
        value: "f3",
        minWidth: "160px"
      },
      {
        label: "Drip tray",
        value: "f4"
      },
      {
        label: "Online connection",
        value: "f5"
      },
      {
        label: "Anchorage",
        value: "f6"
      },
      {
        label: "Foundation",
        value: "f7"
      },
      {
        label: "Temp(C)",
        value: "f8"
      },
      {
        label: "EMI",
        value: "f9"
      },
      {
        label: "IR",
        value: "f10"
      },
      {
        label: "Noise",
        value: "f11"
      },
      {
        label: "UV",
        value: "f12"
      },
      {
        label: "Heat",
        value: "f13"
      },
      {
        label: "Vibration",
        value: "f14"
      },
      {
        label: "Power plug",
        value: "f15"
      },
      {
        label: "Voit",
        value: "f16"
      },
      {
        label: "PCs",
        value: "f17"
      },
      {
        label: "House Vacuum",
        value: "f18"
      },
      {
        label: "Remarks",
        value: "f19"
      }
    ]
  },
  {
    title: "Sub-System",
    key: "Sub-System",
    columns: [
      {
        label: "Sub-tool",
        value: "f1"
      },
      {
        label: "Vendor",
        value: "f2"
      },
      {
        label: "Model",
        value: "f3"
      },
      {
        label: "Quantity",
        value: "f4"
      },
      {
        label: "Floor#",
        value: "f5"
      },
      {
        label: "Bay Location",
        value: "f6"
      },
      {
        label: "Dimensions",
        value: "",
        children: [
          {
            label: "Width",
            value: "f7"
          },
          {
            label: "Depth",
            value: "f8"
          },
          {
            label: "HEIGHT",
            value: "f9"
          },
          {
            label: "Unit",
            value: "f10"
          }
        ]
      },
      {
        label: "Weight",
        value: "f11"
      },
      {
        label: "UV",
        value: "",
        children: [
          {
            label: "Left",
            value: "f12"
          },
          {
            label: "Right",
            value: "f13"
          },
          {
            label: "Front",
            value: "f14"
          },
          {
            label: "Rear",
            value: "f15"
          },
          {
            label: "Top",
            value: "f16"
          },
          {
            label: "Unit",
            value: "f17"
          }
        ]
      },
      {
        label: "Remarks",
        value: "f18"
      }
    ]
  },
  {
    title: "Power",
    key: "Power",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Rated Power (KVA)",
        children: [
          {
            label: "Max",
            value: "f15"
          },

          {
            label: "Avg",
            value: "f16"
          },
          {
            label: "Idle",
            value: "f17"
          }
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Emergency power(KVA)",
        value: "f11"
      },
      {
        label: "UPS(KVA)",
        value: "f14"
      },
      {
        label: "Volage(V)",
        value: "f8"
      },
      {
        label: "Phase",
        value: "f6"
      },
      {
        label: "Peak amp",
        value: "f9"
      },
      {
        label: "Running amp",
        value: "f10"
      },
      {
        label: "Wires",
        value: "f13"
      },
      {
        label: "Ground Resistance(Ω)",
        value: "f18"
      },
      {
        label: "Wires线数及硬芯线/软芯线",
        value: "f7"
      },
      {
        label: "Voltage(V)电压等级",
        value: "f8"
      },
      {
        label: "Remarks",
        value: "f19"
      }
    ]
  },
  {
    title: "Process Vac",
    key: "Process Vacuum",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Pressure （kpa)",
        value: "f6"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f7"
          },
          {
            label: "Fitting Type",
            value: "f8"
          },
          {
            label: "Size(Inch)",
            value: "f9"
          }
        ]
      },

      {
        label: "Remarks",
        value: "f10"
      }
    ]
  },
  {
    title: "Pumping Line",
    key: "Pumping Line",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f15"
          }
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Purge Port(Y/N)",
        value: "f5"
      },
      {
        label: "Leak Test Port(Y/N)",
        value: "f6"
      },
      {
        label: "Local Scrubber(Y/N)",
        value: "f7"
      },
      {
        label: "Burn Tube(Y/N)",
        value: "f8"
      },
      {
        label: "Pump Base Press(Kg/cm2)",
        value: "f10"
      },
      {
        label: "Desirable Tube Size",
        value: "f9"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f11"
          },
          {
            label: "Fitting Type",
            value: "f12"
          },
          {
            label: "Size (Inch)",
            value: "f13"
          }
        ]
      },
      {
        label: "Remarks",
        value: "f14"
      }
    ]
  },
  {
    title: "Exhaust",
    key: "Exhaust",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Exhaust Type",
        value: "f6"
      },
      {
        label: "Exhaust Rate",
        value: "index",
        children: [
          {
            label: "SPEC",
            value: "f7"
          },
          {
            label: "Avg",
            value: "f8"
          },
          {
            label: "Idel",
            value: "f9"
          },
          {
            label: "Unit",
            value: "f10"
          }
        ]
      },
      {
        label: "Static Pressure(kg/cm2)",
        value: "f11"
      },
      {
        label: "Temp",
        value: "f12"
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f13"
          },
          {
            label: "Fitting Type",
            value: "f14"
          },
          {
            label: "Size (Inch)",
            value: "f15"
          }
        ]
      },
      {
        label: "Remarks",
        value: "f16"
      }
    ]
  },
  {
    title: " PCW",
    key: "PCW",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Inlet Pressure",
        value: "",
        children: [
          {
            label: "Max",
            value: "f6"
          },
          {
            label: "Min",
            value: "f7"
          },
          {
            label: "Uint",
            value: "f14"
          }
          // Uint
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "Max",
            value: "f8"
          },
          {
            label: "Min",
            value: "f9"
          },
          {
            label: "Uint",
            value: "f15"
          }
        ]
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f10"
          },
          {
            label: "Fitting Type",
            value: "f11"
          },
          {
            label: "Size (Inch)",
            value: "f12"
          }
        ]
      },

      {
        label: "Remarks",
        value: "f13"
      }
    ]
  },
  {
    title: "UPW",
    key: "UPW",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Inlet Pressure(kgf/cm2)",
        value: "",
        children: [
          {
            label: "Max",
            value: "f6"
          },
          {
            label: "Min",
            value: "f7"
          },

          {
            label: "Uint",
            value: "f10"
          }
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "Max",
            value: "f8"
          },
          {
            label: "Min",
            value: "f9"
          },

          {
            label: "Uint",
            value: "f11"
          }
        ]
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f12"
          },
          {
            label: "Fitting Type",
            value: "f13"
          },
          {
            label: "Size (Inch)",
            value: "f14"
          }
        ]
      },

      {
        label: "Remarks",
        value: "f15"
      }
    ]
  },
  {
    title: "Drain",
    key: "Drain",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f12"
          },
          {
            label: "to",
            value: "f13"
          }
        ]
      },
      {
        label: "Effluenttype (chem%)",
        value: "f14"
      },
      {
        label: "Drain Type",
        value: "f6"
      },
      {
        label: "Drain outlet Pressure(Kg/cm2)",
        value: "f19"
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "Max",
            value: "f7"
          },
          {
            label: "Min",
            value: "f8"
          },
          {
            label: "Idle",
            value: "f9"
          },
          {
            label: "Unit",
            value: "f20"
          }
        ]
      },
      {
        label: "Temp（℃）",
        value: "f10"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f15"
          },
          {
            label: "Fitting Type",
            value: "f16"
          },
          {
            label: "Size (Inch)",
            value: "f17"
          }
        ]
      },
      // {
      //   label: "Unit Code",
      //   value: "f4"
      // },
      // {
      //   label: "楼层[1F/2F/3F]",
      //   value: "f5"
      // },
      // {
      //   label: "化学成分及浓度",
      //   value: "f14"
      // },
      {
        label: "Remarks",
        value: "f18"
      }
    ]
  },
  {
    title: "Chemical",
    key: "Chemical",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Chem Type",
        value: "f6"
      },
      {
        label: "No. of lines",
        value: "f16"
      },
      {
        label: "Inlet Pressure",
        value: "",
        children: [
          {
            label: "Max",
            value: "f7"
          },
          {
            label: "Min",
            value: "f8"
          },
          {
            label: "Unit",
            value: "f9"
          }
        ]
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "Max",
            value: "f10"
          },
          {
            label: "Avg",
            value: "f11"
          },
          {
            label: "Avg",
            value: "f12"
          }
        ]
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f13"
          },
          {
            label: "Fitting Type",
            value: "f14"
          },
          {
            label: "Size (Inch)",
            value: "f15"
          }
        ]
      },
      // {
      //   label: "Quantity",
      //   value: "f3"
      // },

      {
        label: "Remarks",
        value: "f17"
      }
    ]
  },
  {
    title: "City Water",
    key: "City Water",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f4"
          },
          {
            label: "to",
            value: "f5"
          }
        ]
      },
      {
        label: "Inlet Pressure",
        value: "",
        children: [
          {
            label: "Max",
            value: "f6"
          },
          {
            label: "Min",
            value: "f7"
          },
          {
            label: "Unit",
            value: "f14"
          }
        ]
      },
      {
        label: "Quantity",
        value: "f3"
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "SPEC",
            value: "f8"
          },
          {
            label: "Avg",
            value: "f9"
          },
          {
            label: "Unit",
            value: "f15"
          }
        ]
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f10"
          },
          {
            label: "Fitting Type",
            value: "f11"
          },
          {
            label: "Size (Inch)",
            value: "f12"
          }
        ]
      },

      {
        label: "Remarks",
        value: "f13"
      }
    ]
  },
  {
    title: " Bulk Gas",
    key: "Bulk Gas",
    columns: [
      {
        label: "Connection",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f16"
          },
          {
            label: "to",
            value: "f17"
          }
        ]
      },
      {
        label: "type of bulk gas",
        value: "f6"
      },
      {
        label: "No. of lines",
        value: "f19"
      },
      {
        label: "Pressure(after regulator)",
        children: [
          {
            label: "Max",
            value: "f7"
          },
          {
            label: "Min",
            value: "f8"
          },
          {
            label: "Unit",
            value: "f5"
          }
        ]
      },
      {
        label: "Valve box",
        value: "f20"
      },
      {
        label: "Flow Rate",
        children: [
          {
            label: "SPEC",
            value: "f4"
          },
          {
            label: "Avg",
            value: "f9"
          },
          {
            label: "Idle",
            value: "f10"
          },
          {
            label: "Unit",
            value: "f3"
          }
        ]
      },
      {
        label: "Isolation valve [Y/N]",
        value: "f21"
      },
      {
        label: "Regulator [Y/N]",
        value: "f14"
      },
      {
        label: "Press Gauge(Y/N)",
        value: "f22"
      },
      {
        label: "Filter(Y/N)",
        value: "f23"
      },
      {
        label: "Check valves(Y/N)",
        value: "f24"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f11"
          },
          {
            label: "Fitting Type",
            value: "f12"
          },
          {
            label: "Size(Inch)",
            value: "f13"
          }
        ]
      },
      {
        label: "Remarks",
        value: "f15"
      }
    ]
  },
  {
    title: "Special Gas",
    key: "Special Gas",
    columns: [
      {
        label: "Connection",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f1"
          },
          {
            label: "to",
            value: "f2"
          }
        ]
      },
      {
        label: "Fab level",
        value: "index",
        minWidth: "160px",
        children: [
          {
            label: "from",
            value: "f19"
          },
          {
            label: "to",
            value: "f20"
          }
        ]
      },
      {
        label: "Type of gas",
        value: "f6"
      },
      {
        label: "No. of lines",
        value: "f21"
      },
      {
        label: "Pressure(after regulator)",
        children: [
          {
            label: "Max",
            value: "f7"
          },
          {
            label: "Min",
            value: "f8"
          },
          {
            label: "Unit",
            value: "f5"
          }
        ]
      },
      {
        label: "Valve box",
        value: "f22"
      },
      {
        label: "Flow Rate",
        value: "",
        children: [
          {
            label: "spec",
            value: "f4"
          },
          {
            label: "Avg",
            value: "f10"
          },
          {
            label: "Idle",
            value: "f11"
          },
          {
            label: "Unit",
            value: "f3"
          }
        ]
      },
      {
        label: "Isolation valve(Y/N)",
        value: "f23"
      },
      {
        label: "Regulator（Y/N)",
        value: "f13"
      },
      {
        label: "Press Gauge(Y/N)",
        value: "f24"
      },
      {
        label: "Filter(Y/N)",
        value: "f25"
      },
      {
        label: "Check valves(Y/N)",
        value: "f12"
      },
      {
        label: "Connection",
        value: "",
        children: [
          {
            label: "Material",
            value: "f15"
          },
          {
            label: "Fitting Type",
            value: "f16"
          },
          {
            label: "Size(Inch)",
            value: "f17"
          }
        ]
      },
      {
        label: "Remarks",
        value: "f18"
      }
    ]
  }
  // {
  //   title: "Special Gas（机台端产生或自带供给，厂务需统计侦测器种类和数量）",
  //   key: "Special Gas Machine",
  //   columns: [
  //     {
  //       label: "部件名称",
  //       value: "f1"
  //     },
  //     {
  //       label: "Unit Code",
  //       value: "f2"
  //     },
  //     {
  //       label: "楼层[1F/2F/3F]",
  //       value: "f3"
  //     },
  //     {
  //       label: "Type特气名称",
  //       value: "f4"
  //     },
  //     {
  //       label: "需要侦测器 是/否",
  //       value: "f5"
  //     },
  //     {
  //       label: "Remarks",
  //       value: "f6"
  //     }
  //   ]
  // },
];
